import { request } from "@/utils/axios";

/**
 * 获取今日菜品列表
 */
export function getOrdering() {
  return request("/ordering", "get");
}

/**
 * 获取历史菜品列表
 */
export function getOrderHistory() {
  return request("/ordering/history", "get");
}

/**
 * 添加订单
 */
export function getOrderAdd(params) {
  return request("/ordering/add_ordering", "get" ,params);
}
/**
 * 取消订单
 */
export function getOrderCancel(params) {
  return request("/ordering/cancel_ordering", "get",params);
}
/**
 * 获取用户订单列表
 */
export function getOrderUser(id) {
  return request("/ordering/user_ordering", "get" ,{user_id: id});
}
/**
 * 结算
 */
export function getOrderClose(params) {
  return request("/ordering/close_ordering", "get", params);
}
